<?php
declare (strict_types = 1);

namespace app\admin\controller\delivery\channel;

use app\common\controller\Backend;
use app\common\model\delivery\Channel;

class ChannelBase extends Backend
{
    protected $channel;

    protected function _initialize()
    {
        parent::_initialize();
        $channel=Channel::where(['is_default'=>1])->find();
        if(!$channel){
            $this->error("没用设置自营贸易商");
        }
        $this->channel=$channel;
    }
}
